package com.cx.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author xiongmin
 * @version 1.0
 * @date 20-8-19 下午1:43
 */
public class IocApp {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");

        Book book = (Book) ctx.getBean("book");
        System.out.println(book);

        Book book1 = (Book) ctx.getBean("book1");
        System.out.println(book1);


    }
}
